<template>
	<view class="about-page">
		<navigation :navigationMsg="navigationMsg"></navigation>
		<view class="main">
			<view class="text">
				<!-- <u-parse :content="text"></u-parse> -->
				<rich-text :nodes="text"></rich-text>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		http
	} from '@/api/index.js'
	import navigation from "../../../components/navigation.vue"
	export default {
		data() {
			return {
				navigationMsg: {
					title: "关于我们"
				},
				text: ""

			}
		},
		components: {
			navigation
		},
		onShow() {
			this.webUrl = window.origin
			this.getSetting()
		},
		methods: {
			getSetting() {
				http.get('/api/index/about').then(res => {
					this.text = res.about
				}).catch(err => {
					console.log(err);
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.about-page {
		width: 100%;
		height: 100vh;
		background-color: white;
		overflow: hidden;
		position: relative;

		.main {
			width: 100%;
			height: 100%;
			overflow-y: scroll;
			padding-top: 20rpx;

			.text {
				width: 90%;
				margin: auto;
				line-height: 40rpx;
				font-size: 25rpx;
				white-space: pre-line;
			}
		}
	}
</style>